// @import "./quasar-variables.scss";
// @use "amtf/css/amtf-var.scss" as *;
@use "@/css/amtf-var.scss" as *;

// @import "./amtf-bianliang.scss";
// @import "./atailwind.scss";

// del {
//     display: inline;
// }
.m-w-350 {
    min-width: 350px !important;
}
.红框 {
    border: 1px solid red !important;
}
.min-h-40px {
    min-height: 40px !important;
}

.display-none {
    display: none;
}

.text-紫磨真金 {
    color: $紫磨真金 !important;
}

.bg-紫磨真金 {
    background: $紫磨真金 !important;
}

.次要 {
    font-size: $小字 * 0.9;
    color: grey;
}
.换行 {
    flex-wrap: wrap;
}
.上圆角 {
    border-radius: 5px 5px 0px 0px;
}

.撑开 {
    display: flex;
    flex-grow: 1;
}

.q-img__content > div {
    padding: 2px;
}

:root {
    /* 按钮颜色 */
    --vp-button-brand-bg: var(--vp-c-brand);
    /* 首页标题和图片渐变颜色 */
    /* --vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff); */
    --vp-home-hero-name-background: -webkit-linear-gradient(120deg, var(--vp-c-brand) 45%, var(--vp-c-brand-next));
    --vp-home-hero-name-color: transparent;
    --vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
    /* --vp-home-hero-image-background-image: linear-gradient( -45deg, var(--vp-c-brand) 45%, var(--vp-c-brand-next) ); */
    --vp-home-hero-image-filter: blur(40px);
}
@media (min-width: 640px) {
    :root {
        --vp-home-hero-image-filter: blur(56px);
    }
}

@media (min-width: 960px) {
    :root {
        --vp-home-hero-image-filter: blur(72px);
    }
}

.clip动态渐变文字 {
    background: var(--vp-home-hero-name-background);
    /* 背景的显示区域限制clip在文本上 */
    -webkit-background-clip: text;
    background-clip: text;
    /* 定义文本的颜色非WebKit浏览器（如Firefox）中可能不起作用*/
    -webkit-text-fill-color: var(--vp-home-hero-name-color);
}

.q-btn {
    font-size: $小字;
    line-height: 1em;
    text-transform: none;
}
.按钮icon {
    i {
        font-size: $小字 !important;
    }
}

.小字 {
    font-size: $小字;
}

.中字 {
    font-size: ($小字 * 1.2);
}
.大字 {
    font-size: ($小字 * 1.5);
}

.黑底白字 {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

summary {
    display: list-item;
}

// 深色切换动画
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 9999;
}

.dark::view-transition-new(root) {
    z-index: 1;
}

.dark::view-transition-old(root) {
    z-index: 9999;
}

.涟漪容器 {
    position: absolute;
    background-color: rgba(255, 0, 0, 0);
    pointer-events: none;
    overflow: hidden;
}

.无界 ~ .涟漪容器 {
    overflow: visible;
}

.涟漪容器 span {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: $primary;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: 涟漪动画 1s ease;
    pointer-events: none;
}

.涟漪容器.dark span {
    background-color: #fff;
}

@keyframes 涟漪动画 {
    from {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    to {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}
.box阴影 {
    box-shadow: 0 1px 5px rgba($primary, 0.2), 0 2px 2px rgba($primary, 0.14), 0 3px 1px -2px rgba($primary, 0.12);
}

.放大显影 {
    width: 100%;
    max-width: 350px;
    transition: transform $header-quick-transition, box-shadow $header-quick-transition;
    &:hover {
        box-shadow: 0 8px 8px 0 rgba($dark, 0.2) !important;
        transform: scale(1.05);
        z-index: 999;
    }
}

.文字放大显影 {
    transition: transform $header-quick-transition, text-shadow $header-quick-transition;
    &:hover {
        text-shadow: -6px -1px 5px rgba($dark, 0.8) !important;
        transform: scale(1.5);
        z-index: 999;
        cursor: none;
    }
}

.隐藏鼠标 {
    &:hover {
        cursor: none;
    }
}
.dark {
    .放大显影 {
        &:hover {
            box-shadow: 0 4px 8px 0 rgba($brand-primary, 0.8) !important;
        }
    }
    .文字放大显影 {
        &:hover {
            text-shadow: -6px -1px 7px rgba($brand-primary, 0.8) !important;
        }
    }
    .q-btn:before {
        box-shadow: 0 1px 5px rgba(255, 255, 255, 0.2), 0 2px 2px rgba(255, 255, 255, 0.14),
            0 3px 1px -2px rgba(255, 255, 255, 0.12);
    }
    .box阴影 {
        box-shadow: 0 1px 5px rgba(255, 255, 255, 0.2), 0 2px 2px rgba(255, 255, 255, 0.14),
            0 3px 1px -2px rgba(255, 255, 255, 0.12);
    }
}

// makes the scroll bar look better for the drop-down menus in the header
::-webkit-scrollbar {
    height: 12px;
    width: 14px;
    background: transparent;
    z-index: 12;
    overflow: visible;
}

::-webkit-scrollbar-thumb {
    width: 10px;
    background-color: $brand-primary;
    border-radius: 10px;
    z-index: 12;
    border: 4px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    transition: background-color $header-quick-transition;
    margin: 4px;
    min-height: 32px;
    min-width: 32px;
}

::-webkit-scrollbar-thumb:hover {
    background: $brand-primary;
}
